package com.wwj.dubboZookeeper.service.impl;

import com.wwj.dubboZookeeper.service.TicketService;
import com.wwj.dubboZookeeper.service.UserService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @DubboReference //ticketService引用有两种1.pom坐标;2.定义与生产者相同路径的接口
    private TicketService ticketService;

    @Override
    public String getTicket() {
        return ticketService.getTicket();
    }
}
